package com.zym.field_method10;

public class EmployeeTest {

    public static void main(String[] args) {

        Employee employee = new Employee();
        employee.setId(1);
        employee.setName("张三丰");

        //为什么这里变成了初始值
        //get方法读取的是 类的 成员变量的值
//        System.out.println(employee.getId());
//        System.out.println(employee.getName());

        System.out.println(employee.toString());

        Employee employee2 = new Employee(2, "李四");

        //写一个快速打印对象字符串的方法
        System.out.println(employee2.toString());


    }
}
